import request from '@/utils/request'

const tagApi = {
    syncTag: 'qw/qwTag/syncTag',
    checkRunningSyncTag: 'qw/qwTag/checkRunningSyncTag',
    list: 'qw/qwTag/list',
    addTag: 'qw/qwTag/addTag',
    delTagGroup: 'qw/qwTag/delTag'
}

export function syncTag (parameter) {
    return request({
        url: tagApi.syncTag,
        method: 'get',
        params: parameter
    })
}

export function checkRunningSyncTag (parameter) {
    return request({
        url: tagApi.checkRunningSyncTag,
        method: 'get',
        params: parameter
    })
}

export function list (parameter) {
    return request({
        url: tagApi.list,
        method: 'get',
        params: parameter
    })
}

export function addTag (parameter) {
    return request({
        url: tagApi.addTag,
        method: 'post',
        data: parameter
    })
}

export function delTagGroup (parameter) {
    return request({
        url: tagApi.delTagGroup,
        method: 'get',
        params: parameter
    })
}

export default {
    syncTag,
    list,
    addTag,
    checkRunningSyncTag,
    delTagGroup

}
